<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


	<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<s:form id="form" name="form" theme="simple" action="deleteMyOffers.htm">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="myOfferwantedItems.tendertitle" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">

					<table width="100%" cellpadding="0" cellspacing="0" class="filepc">
									<tr>
										<td>
											<s:actionerror cssClass="error-text" theme="simple"/>
											<s:actionmessage cssClass="common-text" theme="simple"/>
										</td>
									</tr>
									<tr>
										<td colspan="9">
											<table width="100%">
												<tr>
													<td width="5%" align="center" valign="top" class="grid-header-bg grid-header-text">
																<input type="checkbox" class="textfiled" name="Check_ctr"
																	value="yes"
																	onchange="CheckCheckAll(document.form.Check_ctr, document.form.check_list)" />
															</td>
															<td width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Photo" />
															</td>
															<td align="center" width="25%" valign="top"
																class="grid-header-bg grid-header-text">
																<a href=""><s:text name="UserShop.para4" /> </a>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Price" />
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Quantity" />
															</td>
															<td align="center" width="20%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Timeleft" />
															</td>
															<td align="center" width="20%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Actions" />
															</td>
														</tr>
													</table>
													<display:table name="itemOffers" cellpadding="0" size="2" style="width: 100%;" cellspacing="1" requestURI="" id="row" class="common-text" pagesize="${listingOptions.listingsItemsPerPage}">
														<display:column class="grid-bg common-text">
															<table width="100%">
																<tr>
																	<td width="5%"  align="center" valign="top" class="grid-bg common-text">
																		<input type="checkbox" name="check_list" id="check_list" value="<s:property value="#attr.row.id"/>"  />
																	</td>
																	<td width="10%"  align="center" valign="middle"
																		class="grid-bg common-text">
																		<s:if test="#attr.row.image != null && #attr.row.image != ''">
																			<a href=""> <img
																			src="servlet/ImageServlet?dto=ItemOffersDTO&id=<s:property value="#attr.row.id"/>"
																				alt="" class="product-border" height="45" width="45">
																		</a>
																		</s:if>
																		<s:else><img src="images/no_image.gif" alt="No Image" height="45" width="45"/></s:else>
																	</td>
																	<td align="center" valign="top" width="25%"
																		class="grid-bg common-text">
																		<a href="showItem.htm?cid=<s:property value="#attr.row.items.itemId" />&p=myOffersWanted"><s:property value="#attr.row.title"/></a>
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																			<s:property value="#attr.row.price"/>
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.quantity" />
																	</td>
																	<td align="center" valign="top" width="20%"
																		class="grid-bg common-text">
																		<s:if test="%{#attr.row.isClosed}">
																			<b>Closed</b><br>
																			<s:date name="#attr.row.offerEndTime" format="dd/MM/yyyy HH:mm:ss"/>
																		</s:if>
																		<s:else>
																			<s:date name="#attr.row.offerEndTime" format="dd/MM/yyyy HH:mm:ss"/>
																		</s:else>
																	</td>
																	<td align="center" valign="top" class="grid-bg common-text" id="mddm" width="20%" >
																		<a href="#" class="common-link"
																			onmouseover="mopen('<s:property value="#attr.row.id" />', this, 'common-link', 'right', <s:property value="#attr.row.id" />)"
																			onmouseout="mclosetime()"><s:text name="lable.select" /></a>
																		<div id="<s:property value="#attr.row.id" />" onmouseover="mcancelclosetime()"
																			onmouseout="mclosetime()" style="visibility: hidden">
																			<a href="showItem.htm?cid=<s:property value="#attr.row.id" />&p=makeOffer"><s:text name="make_new_offer" /></a>
																			<a href="viewSimilarItem.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="View_Similar_Items" /></a>
																			<a href="askSeller.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="Contact_Buyer" /></a>
																			<s:if test="#attr.row.items.favoritesUsers == null">
																				<a href="addToFavoriteUser.htm?userId=<s:property value="#attr.row.items.userId.id" />&action=myTenderOffers"><s:text name="lable.addfavoriteuser" /></a>
																			</s:if>
																			<s:if test="#attr.row.note != null && #attr.row.note != ''"><a href="addOfferNotes.htm?cid=<s:property value="#attr.row.id" />&action=editnote&p=myTenderOffers"><s:text name="edit_note" /></a></s:if>
																			<s:else><a href="addOfferNotes.htm?cid=<s:property value="#attr.row.id" />&action=addnote&p=myTenderOffers"><s:text name="lable.addnote" /></a></s:else>
																		</div>
																	</td>
																</tr>
																<s:if test="#attr.row.note != null && #attr.row.note != ''">
																<tr>
																	<td class="common-text" colspan="9" bgcolor="#EEEEEE">
																		<b><s:text name="label_My_Note" />:&nbsp;&nbsp;&nbsp; </b><s:property value="#attr.row.note"/>
																	</td>
																</tr>
																</s:if>
															</table>
														</display:column>
													</display:table>
												</tr>
											</table>
		</td>
	</tr>
	<tr>
		<td width="5%" valign="top" align="center">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<img src="images/middle/btn-grey-left1.gif" alt=" " width="6"
								height="23" />
						</td>
						<td class="btn-grey-middle1 ">
							<s:submit name="deleteMsg" value="%{getText('button.Delete')}" theme="simple"
								cssClass="submit-btn-common" onclick="return wantToDelete('Are You sure you want to delete Item');" />
						</td>
						<td>
							<img src="images/middle/btn-grey-right1.gif" alt=" " width="6"
								height="23" />
						</td>
					</tr>
				</table>
			</td>
	</tr>
</table>
</s:form>